import request from '@/utils/request'

// 查询企业用户列表
export function listCompanyworker(query) {
  return request({
    url: '/lgdz/companyworker/list',
    method: 'get',
    params: query
  })
}

// 查询企业用户详细
export function getCompanyworker(id) {
  return request({
    url: '/lgdz/companyworker/' + id,
    method: 'get'
  })
}

// 新增企业用户
export function addCompanyworker(data) {
  return request({
    url: '/lgdz/companyworker',
    method: 'post',
    data: data
  })
}

// 修改企业用户
export function updateCompanyworker(data) {
  return request({
    url: '/lgdz/companyworker',
    method: 'put',
    data: data
  })
}

// 删除企业用户
export function delCompanyworker(id) {
  return request({
    url: '/lgdz/companyworker/' + id,
    method: 'delete'
  })
}

// 导出企业用户
export function exportCompanyworker(query) {
  return request({
    url: '/lgdz/companyworker/export',
    method: 'get',
    params: query
  })
}